package com.yummy.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yummy.dto.RoleVo;
import com.yummy.entity.Role;
import com.yummy.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;


public interface RoleService {

    public PageInfo<Role> queryByPage(Integer now, Integer size, String name);

    public Role queryRoleByKey(Integer id);

    public int add(Role role);

    public int modify(Role role);

    public int removeBykey(Integer id);

    public void authority(RoleVo roleVo);

    public List<Role> queryAllRole();
}
